package com.onpositive.wiki3.db.impl;

import java.io.File;

import com.onpositive.wiki3.db.catmodel.Categories;
import com.onpositive.wiki3.db.catmodel.matches.classify.RelationConstants;
import com.onpositive.wiki3.db.catmodel.matches.classify.RelationStore;
import com.onpositive.wiki3.db.catmodel.matches.classify.TypesOfMatcher;

public class Test4 {

	
	
	public static void main(String[] args) {
		final WikiDBImpl wikiDBImpl = new WikiDBImpl("C:/work/content");
		try {
			final Categories oc = new Categories(wikiDBImpl, new File(
					"C:/work/content/n2.cats"), false);
			System.setProperty("wordnet.database.dir", "C:/work/wn/dict");
			final RelationStore ss=new RelationStore(wikiDBImpl);
			oc.accept(new TypesOfMatcher(ss));
			
			Categories categories = ss.get(RelationConstants.IS_A);
			Categories categories2 = ss.get(RelationConstants.GARBAGE);
			System.out.println(categories.size()+categories2.size());
			System.out.println(oc.size());
			ss.save();
			
			
		} catch (Exception e) {
			e.printStackTrace();
			// TODO: handle exception
		}
	}
}
